package com.ljc.service;

import com.ljc.dao.DeviceUtilizationDao;
import com.ljc.entity.DeviceUtilization;
import com.ljc.vo.DeviceUtilizationSearch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeviceUtilizationServiceImpl implements DeviceUtilizationService{

    @Autowired
    private DeviceUtilizationDao deviceUtilizationDao;
    @Override
    public void add(DeviceUtilization deviceUtilization) {
          deviceUtilizationDao.add(deviceUtilization);
          return;
    }

    @Override
    public List<DeviceUtilization> searchByUser(DeviceUtilizationSearch search) {
        return deviceUtilizationDao.searchByUser(search);
    }

    @Override
    public DeviceUtilization getOne(int id) {
        return deviceUtilizationDao.getOne(id);
    }

    @Override
    public void update(DeviceUtilization deviceUtilization) {
        deviceUtilizationDao.update(deviceUtilization);
    }

    @Override
    public void delete(int id) {
        deviceUtilizationDao.delete(id);
        return;
    }

    @Override
    public List<DeviceUtilization> searchByAdmit(DeviceUtilizationSearch search) {
        return deviceUtilizationDao.searchByAdmit(search);
    }
}
